package com.example.myimage;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity {
    private ImageView gaussImageView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        gaussImageView =  findViewById(R.id.iv_image);
        onGaussClick(gaussImageView);


        GaussBitmap.setCallBack();
    }

    public void onGaussClick(View view) {

        Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.bb);
        gaussImageView.setImageBitmap(bitmap);

        long time = System.currentTimeMillis();
        GaussBitmap.gaussBitmap(bitmap, 50);
        long dif = System.currentTimeMillis() - time;
        Log.e("onGaussClick", "onGaussClick: " + dif );




    }
}